<?php
	// A sess?o precisa ser iniciada em cada p?gina diferente
	include "restritoAdministrador.php";
	if (!isset($_SESSION)) session_start();
	header("Content-Type: text/html; charset=utf-8", true);
?>

<!DOCTYPE html>
<html>
	<head> 
		<title> Cadastro de Administrador </title>
		<link rel="stylesheet" type="text/css" href="css/style.css" />
	</head>
	<body>
		<div class="container">
			<div class="head">
				<a id="logo" href="index.php">CKJ Store</a>
				
				<?php include 'head_login.php'; ?>
			</div>

			<!-- fim do header-->

			<?php include 'head_search.php'; ?>

			<?php 
				if(isset($_GET['user_form_success'])){
				    if($_GET['user_form_success'] == 'false'){
				         echo '<div><span class="flash-message">Problemas no cadastro</span></div>';
				    }
				} 
			?>

			<form class="join-form medium" name="cadastrarUsuario"  enctype="multipart/form-data" method="POST" action="acaoCadastroAdministrador.php">
				<fieldset class="fieldset-join"> 
					<legend class="highlights">Administrador</legend> 
				
					<div class="column">
						<label class="join-label" for "label-name">Nome completo:</label> 
						<input class="join-input" type="text" name="name" id="label-name"> 

						<label class="join-label" for "label-cpf">CPF:</label> 
						<input class="join-input" type="text" name="cpf" id="label-cpf">

						<label class="join-label" for "label-type">Sexo:</label> 
						<select class="join-input input-small" name="select">
							<option value="F">Feminino</option>   
							<option value="M" selected>Masculino</option>  
						</select>
						<div class="date"></div>
						
						<label class="join-label" for "label-login">Login:</label> 
						<input class="join-input" type="text" name="login" id="label-login">

						<label class="join-label" for "label-password">Senha:</label> 
						<input class="join-input" type="password" name="password" id="label-password">

						<label class="join-label" for "label-confirm">Confirmar senha:</label> 
						<input class="join-input inline" type="password" name="confirm" id="label-confirm">
					</div>
					<div class="column">
						<input class="submit end" type="submit" value="Adicionar">
					</div>
				</fieldset>
			</form>
		</div>
	</body>
</html>